package com.crrcdt.controller;

import com.crrcdt.feign.TicketFeignClient;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 神瑛侍者 on 2020/8/30.
 * @version 1.0
 */
@RestController
@RequestMapping("/userTestFeign")
@Api(value = "测试feign远程调用", description = "测试feign远程调用")
public class UserTestFeignController {
    @Autowired
    TicketFeignClient ticketFeignClient;
    @GetMapping("/")
    public String testFeign(){
       return ticketFeignClient.getTicket();
    }
}
